package com.example.dllo.my36kr.share.all;

import android.content.Intent;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.example.dllo.my36kr.R;
import com.example.dllo.my36kr.tools.BaseAty;
import com.example.dllo.my36kr.tools.StaticUrl;

/**
 * Created by dllo on 16/8/28.
 */
public class AllWebActivity extends BaseAty {

    private WebView webView;

    @Override
    protected int setLayout() {
        return R.layout.activity_web_all;
    }

    @Override
    protected void initView() {
        webView = bindView(R.id.wb_all);

    }

    @Override
    protected void initData() {
        Intent intent = getIntent();
        String url = intent.getStringExtra("id");
        webView.setWebViewClient(new WebViewClient());
        WebSettings webSettings = webView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        webView.loadUrl( StaticUrl.SHARE_TIAO_URL+url);


    }
}
